// @ts-ignore
/* eslint-disable */
import request from "../request";
import getParams = API.getParams;

/** 通用对话 POST /conversation/chat */
export async function chat(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.chatParams,
  options?: { [key: string]: any }
) {
  return request<string[]>("/conversation/chat", {
    method: "POST",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 创建对话 GET /conversation/chat/create */
export async function create(options?: { [key: string]: any }) {
  return request<API.CommonResultConversationVO>("/conversation/chat/create", {
    method: "GET",
    ...(options || {}),
  });
}

/** 删除对话 DELETE /conversation/chat/del */
export async function del(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.delParams,
  options?: { [key: string]: any }
) {
  return request<API.CommonResultBoolean>("/conversation/chat/del", {
    method: "DELETE",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 修改对话 PUT /conversation/chat/edit */
export async function edit(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.editParams,
  options?: { [key: string]: any }
) {
  return request<API.CommonResultBoolean>("/conversation/chat/edit", {
    method: "PUT",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取对话 GET /conversation/chat/get */
export async function get(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: getParams,
  options?: { [p: string]: any },
) {
  return request<API.CommonResultConversationVO>("/conversation/chat/get", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 展示对话 GET /conversation/chat/list */
export async function list(options?: { [key: string]: any }) {
  return request<API.CommonResultListConversationVO>(
    "/conversation/chat/list",
    {
      method: "GET",
      ...(options || {}),
    }
  );
}

/** 深度对话 POST /conversation/deepChat */
export async function deepChat(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deepChatParams,
  options?: { [key: string]: any }
) {
  return request<string[]>("/conversation/deepChat", {
    method: "POST",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
